English
The useMakeOfferModal hook enables users to place an offer on an NFT. It facilitates creating and submitting offers within the Marketplace.
import { useMakeOfferModal } from "@0xsequence/marketplace-sdk/react"; ## Into your React component: const { show: showOfferModal } = useMakeOfferModal({ onError, }); const onClickOffer = () => { showOfferModal({ collectionAddress, chainId, collectibleId, orderbookKind, }); }; return <button onClick={onClickOffer}>Make Offer</button>
Show child attributes
interface useMakeOfferModal { onSuccess?: ({ hash, orderId }: { hash?: Hash; orderId?: string; }) => void; onError?: (error: Error) => void; }
interface ShowMakeOfferModalArgs { collectionAddress: Hex; chainId: string; collectibleId: string; orderbookKind?: OrderbookKind; callbacks?: ModalCallbacks; }
Was this page helpful?